package dao

import "RestaurantApp/model"

type GoodsDao struct {
}

func (this *GoodsDao) FindGoodsByShopId(shopId int) []model.Goods {
	queryWrapper := model.Goods{
		ShopId: int64(shopId),
	}
	goods := []model.Goods{}
	model.DB.Where(queryWrapper).Find(&goods)

	return goods

}
